package cn.edu.sgu.www.mhxysy.mapper.potency;

import cn.edu.sgu.www.mhxysy.entity.potency.PotencyFruit;
import cn.edu.sgu.www.mhxysy.vo.except.PropertyVO;
import cn.edu.sgu.www.mhxysy.vo.potency.PotencyFruitVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Repository
public interface PotencyFruitMapper extends BaseMapper<PotencyFruit> {

    /**
     * 通过ID查询潜能果详情
     * @param id 潜能果ID
     * @return PotencyFruitVO
     */
    PotencyFruitVO selectDetail(@Param("id") Integer id);

    /**
     * 分类查询潜能果属性
     * @param roleId 角色ID
     * @return List<PropertyVO>
     */
    List<PropertyVO> selectProperty(@Param("roleId") String roleId);

    /**
     * 查询潜能果详情列表
     * @param roleId 角色ID
     * @param schemaId 潜能果方案ID
     * @return List<PotencyFruitVO>
     */
    List<PotencyFruitVO> selectDetails(@Param("roleId") String roleId, @Param("schemaId") Integer schemaId);
}